<template>
  <div class="Movie">
    <h1>Movie</h1>
    <h3>Count组件的num的值是{{num}}</h3>
  </div>
</template>

<script>
import { mapState } from 'vuex';
export default {
    name:"Movie",
    mounted(){
        console.log(this);
    },
    computed:{
        ...mapState(["num"])
    }
}
</script>

<style>
.Movie{
    background:pink;
}
</style>